package com.yuandian.management.socket.entity;

import java.io.Serializable;

/**
 * 基础响应消息
 *
 * @author: tangqingchun
 * @date: 2019-10-08
 */
public abstract class SocketResponse implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 消息类型
	 */
	private int messageType;
	/**
	 * 消息体长度
	 */
	private int messageLength;
	/**
	 * 返回消息体内容
	 */
	private String data;
	
	private SocketResponseHead head;
	
	public int getMessageType() {
		return messageType;
	}
	public void setMessageType(int messageType) {
		this.messageType = messageType;
	}
	public int getMessageLength() {
		return messageLength;
	}
	public void setMessageLength(int messageLength) {
		this.messageLength = messageLength;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
	public SocketResponseHead getHead() {
		return head;
	}
	public void setHead(SocketResponseHead head) {
		this.head = head;
	}
	@Override
	public String toString() {
		return "SocketResponse [messageType=" + messageType + ", messageLength=" + messageLength + ", data=" + data
				+ ", head=" + head + "]";
	}
}
